package com.qzsoft.zhjd.machine.zhgcloud.model;

import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName ZhgWorkTimeModel
 * @Description 机械指挥官获取工时对象
 * @author linhuawei
 * @since 2021-10-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class ZhgWorkTimeModel {

    /**
     * 设备名称
     */
    private String machine_name;

    /**
     * 设备编号
     */
    private String machine_key;

    /**
     * 设备现场编号
     */
    private String project_scene_code;

    private Long work_time;

    private Long idle_time;

    private Long off_time;

    private Long mileage;

    private Date date;

    private List<ZhgWorkRecordsModel> work_records;

    public boolean isEmpty() {
        return null == work_time && null == idle_time && null == off_time;
    }

}
